package com.warrantyhotel.android.ui.map;

import java.util.ArrayList;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.OverlayItem;

public class MyOverlayItem extends OverlayItem {

	private String name;
	private String banner;
	private String thumbnail;
	private String retailStoreID;
	private boolean isPOI;

	public boolean isPOI() {
		return isPOI;
	}

	public void setPOI(boolean isPOI) {
		this.isPOI = isPOI;
	}

	private ArrayList<MyOverlayItem> list = new ArrayList<MyOverlayItem>();

	public MyOverlayItem(GeoPoint point, String name, String banner, String retailStoreID, String thumbnail, boolean isPOI) {
		super(point, "", "");
		this.name = name;
		this.banner = banner;
		this.retailStoreID = retailStoreID;
		this.thumbnail = thumbnail;
		this.isPOI = isPOI;
	}

	public String getName() {
		if (list.size() > 0) {
			return "There are " + (list.size() + 1) + " places.";
		} else {
			return name;
		}

	}

	public void addList(MyOverlayItem item) {
		list.add(item);
	}

	public ArrayList<MyOverlayItem> getList() {
		return list;
	}

	public String getBanner() {
		return banner;
	}

	public String getRetailStoreID() {
		return retailStoreID;
	}

	public String getThumbnail() {
		return thumbnail;
	}

}
